package com.hnkywl.sts.entity.zjfb;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.organ.Nbgs;
import com.hnkywl.sts.entity.organ.Qyjg;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: nianjunyan
 * Date: 13-4-15
 * Time: 下午3:00
 * To change this template use File | Settings | File Templates.
 * 可用资金实体
 */
@Entity
@Table(name = "T_BIZ_KYZJZS")
@Where(clause = "deleted!='1'")
public class Kyzjzs extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqKyzjzs", allocationSize = 1, sequenceName = "SEQ_BIZ_KYZJZS")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqKyzjzs")
    private Long id;


    //  收款公司，关联内部公司
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "NBGS_ID")
    private Nbgs nbgs;

    // 客户，企业机构
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "QYJG_ID")
    private Qyjg qyjg;

    // 可用金额总数
    private Double kyzjzs;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Nbgs getNbgs() {
        return nbgs;
    }

    public void setNbgs(Nbgs nbgs) {
        this.nbgs = nbgs;
    }

    public Qyjg getQyjg() {
        return qyjg;
    }

    public void setQyjg(Qyjg qyjg) {
        this.qyjg = qyjg;
    }

    public Double getKyzjzs() {
        return kyzjzs;
    }

    public void setKyzjzs(Double kyzjzs) {
        this.kyzjzs = kyzjzs;
    }
}
